package com.novax.ex.common.constant;

/**
 * Description: 活动
 *
 * @author my.miao
 * @date 2022/4/14 15:06
 */
public interface ActivityConstants {

    /**
     * Description: 活动 状态1:开启2:关闭
     *
     * @author my.miao
     * @return
     * @date 2022/4/14 15:07
     */
    interface Status {
        Integer OPEN = 1;// 1:开启
        Integer CLOSE = 2;// 2:关闭
    }

    /**
     * Description: 活动 上下架状态1:上架2:下架
     *
     * @author my.miao
     * @return
     * @date 2022/4/14 15:07
     */
    interface OnState {
        Integer PUTAWAY = 1;// 1:上架
        Integer SOLDOUT = 2;// 2:下架
    }

    /**
     * Description: 任务类型1:twitter2:telegram3:充值4:现货交易5:合约交易6:推荐朋友注册7:推荐朋友进行交易8:推荐朋友交易更多数额
     *
     * @author my.miao
     * @return
     * @date 2022/4/19 10:22
     */
    interface TaskType {
        Integer TWITTER = 1;// twitter
        Integer TELEGRAM = 2;// telegram
        Integer TOPUP = 3;// 充值
        Integer SPOT = 4;// 现货交易
        Integer SWAP = 5;// 合约交易
        Integer REGISTER = 6;// 推荐朋友注册
        Integer TRADE = 7;// 推荐朋友进行交易
        Integer TRADE_MAX = 8;// 推荐朋友交易更多数额
        Integer AUTO_REGISTER = 9;// 注册自动赠送
    }

    /**
     * Description: 1:活动规则2:任务奖励说明
     *
     * @author my.miao
     * @return
     * @date 2022/4/20 10:10
     */
    interface RuleType {
        Integer RULE = 1;// 1:活动规则
        Integer AWARD = 2;// 2:任务奖励说明
    }

    /**
     * Description: 1:开启解锁2:停止解锁',
     *
     * @author my.miao
     * @return
     * @date 2022/4/21 18:20
     */
    interface Unlock {
        Integer OPEN = 1;// 1:开启解锁
        Integer STOP = 2;// 2:停止解锁',
    }

    /**
     * Description:发放类型1：注册赠送
     *
     * @author my.miao
     * @return
     * @date 2022/4/23 15:49
     */
    interface AwardType {
        Integer REGISTER_FREE = 1;// 1：注册赠送
    }

    /**
     * redis
     */
    interface redisType {
        String REDID_PREFIX = "activity:";

        String REDIS_KEY_REPEAT = REDID_PREFIX + "repeat:";

        String TWITTER_VERIFY = REDID_PREFIX + "twitter:verify";

        String NEW_USER = REDID_PREFIX + "new:user";

        String TASK_TITLE_LANGUAGE = "task:title:language";

        String TASK_VERSION_CONFIG = "task:version:config";

        String FINISH_DEPOSIT = "finish:deposit";
    }

    /**
     * 管理员控制是否开启twitter校验
     */
    interface VERIFY {
        // 开启
        Integer YES = 1;
        // 关闭
        Integer NO = 0;
    }
}

